<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>学科信息</title>
    <style>
        #container {
            width: 80%;
            margin: 10px auto;
        }

        .user {
            float: right;
            margin-right: 10px;
        }

        .user > a {
            margin-right: 10px;
        }

        #main > dl > dt {
            font-size: 1.5em;
            font-weight: bold;
        }

        #main > dl > dd {
            font-size: 1.2em;
        }

        a {
            text-decoration: none;
            color: darkcyan;
        }
    </style>
</head>
<body>
<div id="container">
{#    <div class="user">#}
{#        <a href="login">用户登录</a>#}
{#        <a href="register.html">快速注册</a>#}
{#    </div>#}
 {% include 'header.html'%}
      <h1>贵阳大学所有学科</h1>
         <hr>
    <div id="main">
        {% for km in subjects %}
        <dl>
            <dt>
                <a href="/teachers/?sno={{ km.no }}">{{ km.name }}</a>
                {% if km.is_hot %}
                 <img style="width: 50px" src="/static/images/hot.png">
                {% endif %}
            </dt>
        <dd>{{ km.intro }}</dd>
        </dl>
      {% endfor %}
    </div>
</div>
</body>
</html>